package com.mywork.activity;

import android.widget.EditText;

import com.ciko.code.base.BaseActicity;
import com.ciko.code.bean.SelPolicyListEty;
import com.mywork.R;

/**
 * Created by ciko on 2015/12/6.
 */
public class WorkManagerEditUserInfoActivity extends BaseActicity {

    private SelPolicyListEty selPolicyListEty;
    private EditText etnameBaodan;
    private EditText etaddressBaodan;
    private EditText etphoneBaodan;

    @Override
    protected void initTopBar() {

        selPolicyListEty = (SelPolicyListEty) getIntent().getSerializableExtra("SelPolicyListEty");

        setTitle("用户资料修改");
        enableNavLeftImg();
    }

    @Override
    protected void initLayout() {
        setContentView(R.layout.activity_work_manager_edit_user_info);

    }

    @Override
    protected void initView() {
        this.etphoneBaodan = (EditText) findViewById(R.id.et_phoneBaodan);
        this.etaddressBaodan = (EditText) findViewById(R.id.et_addressBaodan);
        this.etnameBaodan = (EditText) findViewById(R.id.et_nameBaodan);
    }

    @Override
    protected void initAdapter() {

    }

    @Override
    protected void initDates() {
        etphoneBaodan.setText(selPolicyListEty.getContactPhone());
        etaddressBaodan.setText(selPolicyListEty.getAddress());
        etnameBaodan.setText(selPolicyListEty.getHolderName());
    }

    @Override
    protected void initListener() {

    }
}
